import request from '@/utils/request'

//查询列表页数据
export function queryPageList(data) {
  return request({
    url: '/crm/bizCrmCustomerPool/queryPageList',
    method: 'post',
    data: data
  })
}

//查询公海列表配置
export function queryPoolSettingList() {
  return request({
    url: '/crm/bizCrmCustomerPool/queryPoolSettingList',
    method: 'post',
  })
}
//查询模块字段列表
export function queryListHead(poolId) {
  return request({
    url: '/crm/bizCrmCustomerPool/queryPoolListHead?poolId='+poolId,
    method: 'get',
  })
}
//查询前台公海列表
export function queryPoolNameListByAuth() {
  return request({
    url: '/crm/bizCrmCustomerPool/queryPoolNameListByAuth',
    method: 'post',
  })
}

//查询公海字段配置
export function queryPoolFieldConfig(poolId) {
  return request({
    url: '/crm/bizCrmCustomerPool/queryPoolFieldConfig?poolId='+poolId,
    method: 'post',
  })
}

//查询前台公海列表
export function queryPoolNameList() {
  return request({
    url: '/crm/bizCrmCustomerPool/queryPoolNameList',
    method: 'post',
  })
}

// 删除公海内客户
export function deleteByIds(data) {
  return request({
    url: '/crm/bizCrmCustomerPool/deleteByIds',
    method: 'post',
    data:data,
  })
}

